using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SlimeDeadState : EnemyStateBase
{
    public Enemy_Slime slime;
    public SlimeDeadState(Enemy enemy, StateMachine stateMachine, string animName) : base(enemy, stateMachine, animName)
    {
        slime = enemy as Enemy_Slime;
    }
    public override void Enter()
    {
        base.Enter();
        slime.CreateChild();
    }
    public override void Update()
    {
        base.Update();
        if (triggerCalled)
        {
            enemy.gameObject.SetActive(false);
        }
    }
    public override void Exit()
    {
        base.Exit();
    }
}
